package com.couldtest.consumerFeign.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by liguanfu on 2018/6/7.
 */
@FeignClient(name ="server-provider",fallback = DcHystrix.class)
public interface DcClient {


    @GetMapping("/dcx")
    String consumer(@RequestParam("id") String id);


    @RequestMapping("/dcx1")
    String dcx1(@RequestParam("id") String id ,@RequestParam("name") String name);

    @RequestMapping("/dcx2")
    String dcx2(@RequestHeader("id") String id ,@RequestHeader("name") String name);
}